package com.probiz.estore.order.service;

import java.util.List;

import org.dom4j.Document;

import com.probiz.estore.common.model.order.OrderDelivery;
import com.probiz.estore.common.model.order.OrderExpress;
import com.probiz.estore.common.model.order.OrderShipment;
import com.probiz.estore.core.service.GenericManager;

/**
 * Manager interface for OrderExpress, responsible for business processing, and communicate between web and persistence layer.
 *
 */
public interface OrderExpressManager extends GenericManager<OrderExpress> {
	/**
	 * 根据发货项和发货地址获得模板输出XML
	 * @param orderShipment
	 * @param orderDelivery
	 * @return
	 */
	public Document getXmlFormatData(OrderShipment orderShipment,OrderDelivery orderDelivery);
	/**
	 * 返回所有可用的快递单模板
	 * @return
	 */
	public List<OrderExpress> listAvailableOrderExpress();
}
